package com.tweetgraph.domain;

import java.util.Comparator;

import twitter4j.Tweet;

public class TweetComparator implements Comparator<Tweet> {

	@Override
	public int compare(Tweet arg0, Tweet arg1) {
		Long tid0 = new Long(0);
		Long tid1 = new Long(0);

		if(arg0 != null){
			tid0 = new Long(arg0.getId());
		}

		if(arg1 != null){
			tid1 = new Long(arg1.getId());
		}

		return tid0.compareTo(tid1);

	}

}
